import request from "@/utils/request";
import { HomeData } from "@/type/HomeType";
import { ResponseType } from "@/type/ResponseType";


enum Enum {
   fetchHomeDataAPI = "/page/detail"
}

/**
 * @description 获取首页所有数据的接口
 * */
export const fetchHomeDataAPI = (pageId: string) => request.get<HomeData, ResponseType<HomeData>>(Enum.fetchHomeDataAPI, { params: { pageId } });
